{extend name="../../base/view/common/base" /}
{block name="style"}
{include file="/approve/view_style" /}
{/block}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-4">
	<h3 class="pb-3">出差审批</h3>
	<table class="layui-table layui-table-form">
		<tr>
			<td class="layui-td-gray">出差地点</td>
			<td colspan="3">{$detail.address}</td>
		</tr>
		<tr>
			<td class="layui-td-gray">出差日期</td>
			<td>{$detail.start_time} 的{$detail.start_time_span==1?'上午':'下午'} 至 {$detail.end_time} 的{$detail.end_time_span==1?'上午':'下午'}</td>
			<td class="layui-td-gray">出差天数</td>
			<td>共{$detail.duration}天</td>
		</tr>
		<tr>
			<td class="layui-td-gray">出差事由</td>
			<td colspan="3">{$detail.content}</td>
		</tr>
		{notempty name="$detail.file_ids"}
		<tr>
			<td class="layui-td-gray">相关附件</td>
			<td colspan="3" style="line-height:inherit">
				<div class="layui-row">
					{volist name="$detail.fileArray" id="vo"}
					<div class="layui-col-md4" id="uploadImg{$vo.id}">{:file_card($vo,'view')}</div>
					{/volist}
				</div>
			</td>
		</tr>
		{/notempty}
	</table>	
	{include file="/approve/view_step" /}
</div>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
{include file="/approve/view_script" /}
{/block}
<!-- /脚本 -->